﻿/*
 * @Description:58同城首页js
 * @Author:yangjj
 * @Date:2015-09-30
 */
var TC58 = {};

function getTitles() {
    var titles = ["最新信息", "已删除信息"];
    return titles;
};

function getTabUrl(tabname) {
    if (tabname == "最新信息") {
        return "/advert/tc-new-info-ajax";
    }
    if (tabname == "已删除信息") {
        return "/advert/tc-del-info-ajax";
    }
    return "/Common/Error404";
};

function getData(tabname) {
    return [{ name: "key", value: tabname }];
};

$(function () {

    var option = {
        titleID: "titleid",
        contentID: "contentdiv",
        currentClassName: "current",
        titleFun: getTitles,
        urlFun: getTabUrl,
        dataFun: getData,
        contentFun: null,
        isIframe: true,
        autoMatch: 1
    };
    tabHelper(option);
});